<%--
  Created by IntelliJ IDEA.
  User: 00
  Date: 2018/3/16
  Time: 17:52
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/WEB-INF/jsp/comm/head.jsp"%>
</head>
<body>

<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            条件查询
        </div>
        <div class="panel-body">
            <form class="form-inline">
                <div class="form-group">
                    <label for="" class="control-label">任务编号：</label>
                    <input type="text" name="inspectionTaskCode" class="form-control"/>
                </div>
                <div class="form-group">
                    <label for="" class="control-label">线路管理：</label>
                    <input type="text" name="lineName"  class="form-control"/>
                </div>
                <div class="form-group">
                    <button type="button" class="btn btn-danger" onclick="zxhz()"><i class="glyphicon glyphicon-search"></i> 查询</button>
                </div>
            </form>
        </div>
    </div>


    <table id="table"
           data-toggle="table"
           data-url="${ctx}/xj/qxdj/qxshow"
           data-striped="true"
           data-pagination="true"
           data-side-pagination="server"
           data-page-size="4"
           data-page-list="[4,8,12,16,20]"
           data-query-params="queryParams"
           data-toolbar="toolbar">
        <thead>

        <tr>
            <th data-field="inspectiontaskMain.inspectionTaskCode">任务编号</th>
            <th data-field="lineCode">线路编号</th>
            <th data-field="poleCode">杆塔编号</th>
            <th data-field="bugLevelName">缺陷类型</th>
            <th data-field="bugTypeName">缺陷类型</th>
            <th data-field="discovererName">发现人</th>
            <th data-field="discoverTime">发现时间</th>
            <th data-field="inspectiontaskMain.issuedByName">下发人</th>
            <th data-field="inspectiontaskMain.issuedTime">下发时间</th>
            <th data-field="intactRate" data-formatter="wcl">完好率</th>
            <th data-field="bugDesc">缺陷描述</th>
        </tr>
        </thead>
    </table>




<%@include file="/WEB-INF/jsp/comm/foot.jsp"%>
    <script src="${ctx}/static/myjs/zxhz.js"></script>
    <script>


        function wcl(value,row){
            return value=value+"%";
        }

        $(function(){
            $.getJSON(ctx+"zdfp/search1",function(arr){
                $(arr).each(function(){
                    var $opt=$("<option/>");
                    $opt.html(this.configValueName);
                    $opt.val(this.configValueId);
                    $opt.appendTo("[name=configValueId]");
                });
            });
        });
    </script>
</body>
</html>
